package com.my12306.train.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.my12306.common.model.vo.PageVo;
import com.my12306.train.model.entity.MarshallingEntity;
import com.my12306.train.model.vo.MarshallingCarriageVo;

import java.util.List;

/**
 * 列车编组基本信息表
 *
 * @author ËÕÄÁÏ¦
 * @email
 * @date 2020-07-24 20:58:07
 */
public interface MarshallingService extends IService<MarshallingEntity> {
    /**
     * 查询所有编组信息
     * @param pageVo
     * @return
     */
    List<MarshallingCarriageVo> queryAllMarshallingByParams(PageVo pageVo);

    /**
     * 查询某个编组信息
     * @param id
     * @return
     */
    MarshallingCarriageVo queryAllMarshallingById(Long id);

    /**
     * 添加一个编组
     * @param marshallingEntity
     * @return
     */
    Long saveMarshalling(MarshallingEntity marshallingEntity);

    /**
     * 查询未绑定的编组
     * @return
     */
    List<MarshallingEntity> queryMarshallingNoMar();
}

